package com.dc.refactoring._3_重新组织数据._14_ReplaceSubClassWithFields.step2;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Test {


    public static void main(String[] args){

        // 【2】修改其他方法中调用对象的创建过程
        Person male = Person.createMale();
        log.info("code={}, isMale={}", male.getCode(), male.isMale());

    }
}
